<?php

namespace App\Http\Controllers;

use App\Blog;
use Illuminate\Http\Request;
use App\User;
class IndexController extends Controller
{
    public function index(){
    	$blogs=Blog::paginate(3);
		return view('index',compact('blogs'));
	}
	public function lists(){
    	return view('lists');
	}
	public function show(User $user){
		dd($user->toArray ());
	}

}
